
{extend name="public:base" /}

{block name="body"}

  <div class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
      <label class="layui-form-label">管理员</label>
	  <div class="layui-input-block">
		<select name="uid" lay-verify="required">
		{volist name="admins" id="vo"}
			<option value="{$vo.id}">{$vo.username}</option>
		{/volist}
		</select>
       </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">角色</label>
	  <div class="layui-input-block">
		<select name="group_id" lay-verify="required">
		{volist name="auth_groups" id="vo"}
			<option value="{$vo.id}">{$vo.title}</option>
		{/volist}
		</select>
       </div>
    </div>
    <div class="layui-form-item layui-hide">
      <input type="button" lay-submit lay-filter="LAY-admin-group-submit" id="LAY-admin-group-submit" value="确认">
    </div>
  </div>

{/block}
{block name="js"}  
  <script>
  layui.config({
    base: '/static/admin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form'], function(){
    var $ = layui.$
    ,form = layui.form ;
  })
  </script>
{/block}